package com.lau.dicttranslator.model;

import com.lau.dicttranslator.annotation.DictField;
import com.lau.dicttranslator.enums.DictType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.lau.dicttranslator.serializer.DictFieldSerializer;
import lombok.Data;

/**
 * 用户详情实体
 */
@Data
public class UserDetail {
    
    private String email;
    
    private String phone;
    
    /**
     * 教育程度：使用数据库字典
     */
    @DictField(dictType = DictType.DATABASE, dictCode = "education")
    @JsonSerialize(using = DictFieldSerializer.class)
    private String education;
    
    /**
     * 婚姻状况：使用数据库字典
     */
    @DictField(dictType = DictType.DATABASE, dictCode = "marital_status")
    @JsonSerialize(using = DictFieldSerializer.class)
    private String maritalStatus;
} 